package com.keller.guli.service.edu.feign;


import com.keller.guli.common.base.result.R;
import com.keller.guli.service.edu.feign.fallback.VodMediaServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Service
@FeignClient(value = "service-vod", fallback = VodMediaServiceFallBack.class) //调用外部微服务
public interface VodMediaService {
    @DeleteMapping("/admin/vod/media/remove/{videoId}")
    R removeVideo(@PathVariable("videoId") String videoId);

    @DeleteMapping("/admin/vod/media/remove")
    R removeVideoByIdList(List<String> videoIdList) throws Exception;
}
